﻿using aier.business.logic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using aier.dataaccess.dapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace aier.business.logic
{
    [TestClass()]
    public class LeadDalUT
    {
        [TestMethod()]
        public void DisassociateUT()
        {

        }
    }
}

namespace aier.dataaccess.dapper
{
    [TestClass()]
    public class LeadDalUT
    {
        private LeadDal leadDal = null;

        [TestInitialize]
        public void Init()
        {
            leadDal = new LeadDal();
            leadDal.dapperHelper = new DapperHelper();
        }

        [TestMethod()]
        public void QueryLeadInfoByIdUT()
        {
            var obj = leadDal.QueryLeadInfoById(new Guid("47B1DA0E-551A-E511-80BE-00155D94EE04"));
            Console.WriteLine(obj.LastName);
        }

        [TestMethod()]
        public void QueryLeadidUT()
        {
           // var obj = leadDal.QueryLeadid("好名称",new Guid("68E81454-4EAA-E411-80B6-00155D94EE04"),null, "15200863735",null);
            //Console.WriteLine(obj);
        }
    }
}